#ifndef FIVE_H
#define FIVE_H

#include <QMainWindow>
#include<qpainter.h>
#include<QMouseEvent>
QT_BEGIN_NAMESPACE
namespace Ui { class five; }
QT_END_NAMESPACE

class five : public QMainWindow
{
    Q_OBJECT

public:
    five(QWidget *parent = nullptr);
    ~five();
    void paintEvent(QPaintEvent*event);
    void mousePressEvent(QMouseEvent*event);
    bool whitewin(int a[15][15]);
    bool blackwin(int a[15][15]);
private slots:
    void huiqil();
    void on_pushButton_clicked();
    void on_pushButton_2_clicked();

private:
    Ui::five *ui;
    QRect chessblack;
    QRect chesswhite;
    int chess_x,chess_y,start_x,start_y,grand_x,grand_y;
    int chess[15][15]={{0}};
};
#endif // FIVE_H
